package com.sfh.cp.base;


import com.sfh.lib.http.IRxHttpClient;
import com.sfh.lib.http.IRxHttpConfig;
import com.sfh.lib.http.service.AbstractHttpClientService;

/**
 * 功能描述:网络连接
 *
 * @author SunFeihu 孙飞虎
 * @date 2018/4/10
 */
public class AppHttpClient extends AbstractHttpClientService implements IRxHttpConfig {

    public static <T> T build(Class<T> service) {
        return rxHttpClient.getRxHttpService(service);
    }

    public static IRxHttpClient rxHttpClient = new AppHttpClient();

    @Override
    public String getHots() {
        return "http://127.0.0.1/cpmass/";
    }

    @Override
    public boolean log() {
        return true;
    }


    @Override
    public IRxHttpConfig getRxHttpConfig() {
        return this;
    }
}
